home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / ssi.c < prev    next >
C/C++ Source or Header  |  2000-04-23  |  14KB  |  419 lines

  1. /***************************************************************************
  2.  
  3. Super Space invaders
  4.  
  5. driver by Richard Bush, Howie Cohen, Alex Pasadyn
  6.  
  7. ***************************************************************************/
  8. #include "driver.h"
  9. #include "cpu/m68000/m68000.h"
  10. #include "vidhrdw/generic.h"
  11.  
  12.  
  13.  
  14. READ_HANDLER( ssi_videoram_r );
  15. WRITE_HANDLER( ssi_videoram_w );
  16. int ssi_vh_start(void);
  17. void ssi_vh_stop (void);
  18. void ssi_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
  19.  
  20. WRITE_HANDLER( rastan_sound_port_w );
  21. WRITE_HANDLER( rastan_sound_comm_w );
  22. READ_HANDLER( rastan_sound_comm_r );
  23. void rastan_irq_handler (int irq);
  24.  
  25. READ_HANDLER( rastan_a001_r );
  26. WRITE_HANDLER( rastan_a000_w );
  27. WRITE_HANDLER( rastan_a001_w );
  28.  
  29. static WRITE_HANDLER( bankswitch_w ) {
  30.  
  31.     unsigned char *RAM = memory_region(REGION_CPU2);
  32.  
  33.     int banknum = ( data - 1 ) & 3;
  34.  
  35.     cpu_setbank( 2, &RAM[ 0x10000 + ( banknum * 0x4000 ) ] );
  36. }
  37.  
  38. static READ_HANDLER( ssi_input_r )
  39. {
  40.     switch (offset)
  41.     {
  42.          case 0x00:
  43.               return readinputport(3); /* DSW A */
  44.  
  45.          case 0x02:
  46.               return readinputport(4); /* DSW B */
  47.  
  48.          case 0x04:
  49.               return readinputport(0); /* IN0 */
  50.  
  51.          case 0x06:
  52.               return readinputport(1); /* IN1 */
  53.  
  54.          case 0x0e:
  55.               return readinputport(2); /* IN2 */
  56.     }
  57.  
  58. logerror("CPU #0 PC %06x: warning - read unmapped memory address %06x\n",cpu_get_pc(),0x100000+offset);
  59.  
  60.     return 0xff;
  61. }
  62.  
  63. WRITE_HANDLER( ssi_sound_w )
  64. {
  65.     if (offset == 0)
  66.         rastan_sound_port_w(0,(data >> 8) & 0xff);
  67.     else if (offset == 2)
  68.         rastan_sound_comm_w(0,(data >> 8) & 0xff);
  69. }
  70.  
  71. READ_HANDLER( ssi_sound_r )
  72. {
  73.     if (offset == 2)
  74.         return ( ( rastan_sound_comm_r(0) & 0xff ) << 8 );
  75.     else return 0;
  76. }
  77.  
  78. static struct MemoryReadAddress readmem[] =
  79. {
  80.     { 0x000000, 0x07ffff, MRA_ROM },
  81.     { 0x100000, 0x10000f, ssi_input_r },
  82.     { 0x200000, 0x20ffff, MRA_BANK1 },
  83.     { 0x300000, 0x301fff, paletteram_word_r },
  84.     { 0x400000, 0x400003, ssi_sound_r },
  85.     { 0x600000, 0x60ffff, MRA_BANK3 },
  86.     { 0x800000, 0x80ffff, ssi_videoram_r },
  87.     { -1 }  /* end of table */
  88. };
  89.  
  90. static struct MemoryWriteAddress writemem[] =
  91. {
  92.     { 0x000000, 0x07ffff, MWA_ROM },
  93.     { 0x100000, 0x10000f, watchdog_reset_w },    /* ? */
  94.     { 0x200000, 0x20ffff, MWA_BANK1 },
  95.     { 0x300000, 0x301fff, paletteram_RRRRGGGGBBBBxxxx_word_w, &paletteram },
  96.     { 0x400000, 0x400003, ssi_sound_w },
  97. //    { 0x500000, 0x500001, MWA_NOP },    /* ?? */
  98.     { 0x600000, 0x60ffff, MWA_BANK3 }, /* unused f2 video layers */
  99. //    { 0x620000, 0x62000f, MWA_NOP }, /* unused f2 video control registers */
  100.     { 0x800000, 0x80ffff, ssi_videoram_w, &videoram, &videoram_size }, /* sprite ram */
  101.     { -1 }  /* end of table */
  102. };
  103.  
  104.  
  105. static struct MemoryReadAddress sound_readmem[] =
  106. {
  107.     { 0x0000, 0x3fff, MRA_ROM },
  108.     { 0x4000, 0x7fff, MRA_BANK2 },
  109.     { 0xc000, 0xdfff, MRA_RAM },
  110.     { 0xe000, 0xe000, YM2610_status_port_0_A_r },
  111.     { 0xe001, 0xe001, YM2610_read_port_0_r },
  112.     { 0xe002, 0xe002, YM2610_status_port_0_B_r },
  113.     { 0xe200, 0xe200, MRA_NOP },
  114.     { 0xe201, 0xe201, rastan_a001_r },
  115.     { 0xea00, 0xea00, MRA_NOP },
  116.     { -1 }  /* end of table */
  117. };
  118.  
  119. static struct MemoryWriteAddress sound_writemem[] =
  120. {
  121.     { 0x0000, 0x7fff, MWA_ROM },
  122.     { 0xc000, 0xdfff, MWA_RAM },
  123.     { 0xe000, 0xe000, YM2610_control_port_0_A_w },
  124.     { 0xe001, 0xe001, YM2610_data_port_0_A_w },
  125.     { 0xe002, 0xe002, YM2610_control_port_0_B_w },
  126.     { 0xe003, 0xe003, YM2610_data_port_0_B_w },
  127.     { 0xe200, 0xe200, rastan_a000_w },
  128.     { 0xe201, 0xe201, rastan_a001_w },
  129.     { 0xe400, 0xe403, MWA_NOP }, /* pan */
  130.     { 0xee00, 0xee00, MWA_NOP }, /* ? */
  131.     { 0xf000, 0xf000, MWA_NOP }, /* ? */
  132.     { 0xf200, 0xf200, bankswitch_w },    /* ?? */
  133.     { -1 }  /* end of table */
  134. };
  135.  
  136.  
  137.  
  138. INPUT_PORTS_START( ssi )
  139.     PORT_START      /* IN0 */
  140.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER1 )
  141.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER1 )
  142.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER1 )
  143.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER1 )
  144.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1 )
  145.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER1 )
  146.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  147.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1)
  148.  
  149.     PORT_START      /* IN1 */
  150.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER2 )
  151.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER2 )
  152.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER2 )
  153.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 )
  154.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
  155.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2 )
  156.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  157.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2)
  158.  
  159.     PORT_START      /* IN2 */
  160.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT )
  161.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN3 )
  162.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
  163.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
  164.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
  165.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
  166.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  167.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  168.  
  169.     PORT_START /* DSW A */
  170.     PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
  171.     PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
  172.     PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
  173.     PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) )
  174.     PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
  175.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  176.     PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
  177.     PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )
  178.     PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
  179.     PORT_DIPSETTING(    0x08, DEF_STR( On ) )
  180.     PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) )
  181.     PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
  182.     PORT_DIPSETTING(    0x10, DEF_STR( 3C_1C ) )
  183.     PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )
  184.     PORT_DIPSETTING(    0x30, DEF_STR( 1C_1C ) )
  185.     PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) )
  186.     PORT_DIPSETTING(    0xc0, DEF_STR( 1C_2C ) )
  187.     PORT_DIPSETTING(    0x80, DEF_STR( 1C_3C ) )
  188.     PORT_DIPSETTING(    0x40, DEF_STR( 1C_4C ) )
  189.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_6C ) )
  190.  
  191.     PORT_START /* DSW B */
  192.     PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
  193.     PORT_DIPSETTING(    0x02, "Easy" )
  194.     PORT_DIPSETTING(    0x03, "Normal" )
  195.     PORT_DIPSETTING(    0x01, "Hard" )
  196.     PORT_DIPSETTING(    0x00, "Hardest" )
  197.     PORT_DIPNAME( 0x0c, 0x0c, "Shields" )
  198.     PORT_DIPSETTING(    0x00, "None")
  199.     PORT_DIPSETTING(    0x0c, "1")
  200.     PORT_DIPSETTING(    0x04, "2")
  201.     PORT_DIPSETTING(    0x08, "3")
  202.     PORT_DIPNAME( 0x10, 0x10, DEF_STR( Lives ) )
  203.     PORT_DIPSETTING(    0x00, "2")
  204.     PORT_DIPSETTING(    0x10, "3")
  205.     PORT_DIPNAME( 0xa0, 0xa0, "2 Players Mode" )
  206.     PORT_DIPSETTING(    0xa0, "Simultaneous")
  207.     PORT_DIPSETTING(    0x80, "Alternate, Single")
  208.     PORT_DIPSETTING(    0x00, "Alternate, Dual")
  209.     PORT_DIPSETTING(    0x20, "Not Allowed")
  210.     PORT_DIPNAME( 0x40, 0x40, "Allow Continue" )
  211.     PORT_DIPSETTING(    0x00, DEF_STR( No ) )
  212.     PORT_DIPSETTING(    0x40, DEF_STR( Yes ) )
  213. INPUT_PORTS_END
  214.  
  215. INPUT_PORTS_START( majest12 )
  216.     PORT_START      /* IN0 */
  217.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER1 )
  218.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER1 )
  219.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER1 )
  220.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER1 )
  221.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1 )
  222.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER1 )
  223.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  224.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1)
  225.  
  226.     PORT_START      /* IN1 */
  227.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER2 )
  228.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER2 )
  229.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER2 )
  230.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 )
  231.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
  232.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2 )
  233.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  234.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2)
  235.  
  236.     PORT_START      /* IN2 */
  237.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT )
  238.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN3 )
  239.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
  240.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
  241.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
  242.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
  243.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  244.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  245.  
  246.     PORT_START /* DSW A */
  247.     PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
  248.     PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
  249.     PORT_DIPSETTING(    0x01, DEF_STR( Cocktail ) )
  250.     PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) )
  251.     PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
  252.     PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  253.     PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
  254.     PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )
  255.     PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
  256.     PORT_DIPSETTING(    0x08, DEF_STR( On ) )
  257.     PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) )
  258.     PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
  259.     PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
  260.     PORT_DIPSETTING(    0x30, DEF_STR( 1C_1C ) )
  261.     PORT_DIPSETTING(    0x20, DEF_STR( 1C_2C ) )
  262.     PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) )
  263.     PORT_DIPSETTING(    0x00, DEF_STR( 3C_1C ) )
  264.     PORT_DIPSETTING(    0x40, DEF_STR( 2C_1C ) )
  265.     PORT_DIPSETTING(    0xc0, DEF_STR( 1C_1C ) )
  266.     PORT_DIPSETTING(    0x80, DEF_STR( 1C_2C ) )
  267.  
  268.     PORT_START /* DSW B */
  269.     PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
  270.     PORT_DIPSETTING(    0x02, "Easy" )
  271.     PORT_DIPSETTING(    0x03, "Normal" )
  272.     PORT_DIPSETTING(    0x01, "Hard" )
  273.     PORT_DIPSETTING(    0x00, "Hardest" )
  274.     PORT_DIPNAME( 0x0c, 0x0c, "Shields" )
  275.     PORT_DIPSETTING(    0x00, "None")
  276.     PORT_DIPSETTING(    0x0c, "1")
  277.     PORT_DIPSETTING(    0x04, "2")
  278.     PORT_DIPSETTING(    0x08, "3")
  279.     PORT_DIPNAME( 0x10, 0x10, DEF_STR( Lives ) )
  280.     PORT_DIPSETTING(    0x00, "2")
  281.     PORT_DIPSETTING(    0x10, "3")
  282.     PORT_DIPNAME( 0xa0, 0xa0, "2 Players Mode" )
  283.     PORT_DIPSETTING(    0xa0, "Simultaneous")
  284.     PORT_DIPSETTING(    0x80, "Alternate, Single Controls")
  285.     PORT_DIPSETTING(    0x00, "Alternate, Dual Controls")
  286.     PORT_DIPSETTING(    0x20, "Not Allowed")
  287.     PORT_DIPNAME( 0x40, 0x40, "Allow Continue" )
  288.     PORT_DIPSETTING(    0x00, DEF_STR( No ) )
  289.     PORT_DIPSETTING(    0x40, DEF_STR( Yes ) )
  290. INPUT_PORTS_END
  291.  
  292.  
  293.  
  294. static struct GfxLayout tilelayout =
  295. {
  296.     16,16,    /* 16*16 sprites */
  297.     8192,    /* 8192 sprites */
  298.     4,    /* 4 bits per pixel */
  299.     { 0, 1, 2, 3 },
  300.     { 1*4, 0*4, 3*4, 2*4, 5*4, 4*4, 7*4, 6*4, 9*4, 8*4, 11*4, 10*4, 13*4, 12*4, 15*4, 14*4 },
  301.     { 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64, 8*64, 9*64, 10*64, 11*64, 12*64, 13*64, 14*64, 15*64 },
  302.     128*8    /* every sprite takes 32 consecutive bytes */
  303. };
  304.  
  305. static struct GfxDecodeInfo ssi_gfxdecodeinfo[] =
  306. {
  307.     { REGION_GFX1, 0x000000, &tilelayout, 0, 256 },         /* sprites & playfield */
  308.     { -1 } /* end of array */
  309. };
  310.  
  311. static struct YM2610interface ym2610_interface =
  312. {
  313.     1,    /* 1 chip */
  314.     8000000,    /* 8 MHz ?????? */
  315.     { 30 },
  316.     { 0 },
  317.     { 0 },
  318.     { 0 },
  319.     { 0 },
  320.     { rastan_irq_handler },
  321.     { REGION_SOUND1 },
  322.     { REGION_SOUND1 },
  323.     { YM3012_VOL(60,MIXER_PAN_LEFT,60,MIXER_PAN_RIGHT) }
  324.  
  325. };
  326.  
  327.  
  328.  
  329. static struct MachineDriver machine_driver_ssi =
  330. {
  331.     /* basic machine hardware */
  332.     {
  333.         {
  334.             CPU_M68000,
  335.             12000000,    /* 12 MHz ? */
  336.             readmem,writemem,0,0,
  337.             m68_level5_irq,1
  338.         },
  339.         {
  340.             CPU_Z80 | CPU_AUDIO_CPU,
  341.             4000000,    /* 4 MHz ??? */
  342.             sound_readmem, sound_writemem,0,0,
  343.             ignore_interrupt,0    /* IRQs are triggered by the YM2610 */
  344.         }
  345.     },
  346.     60, 1800,    /* frames per second, vblank duration hand tuned to avoid flicker */
  347.     10,
  348.     0,
  349.  
  350.     /* video hardware */
  351.     40*8, 28*8, { 0*8, 40*8-1, 0*8, 28*8-1 },
  352.  
  353.     ssi_gfxdecodeinfo,
  354.     4096, 4096,
  355.     0,
  356.  
  357.     VIDEO_TYPE_RASTER | VIDEO_MODIFIES_PALETTE | VIDEO_UPDATE_AFTER_VBLANK,
  358.     0,
  359.     ssi_vh_start,
  360.     ssi_vh_stop,
  361.     ssi_vh_screenrefresh,
  362.  
  363.     /* sound hardware */
  364.     SOUND_SUPPORTS_STEREO,0,0,0,
  365.     {
  366.         {
  367.             SOUND_YM2610,
  368.             &ym2610_interface
  369.         }
  370.     }
  371. };
  372.  
  373.  
  374.  
  375. /***************************************************************************
  376.  
  377.   Game driver(s)
  378.  
  379. ***************************************************************************/
  380.  
  381. ROM_START( ssi )
  382.     ROM_REGION( 0x80000, REGION_CPU1 )     /* 512k for 68000 code */
  383.     ROM_LOAD_EVEN( "ssi_15-1.rom", 0x00000, 0x40000, 0xce9308a6 )
  384.     ROM_LOAD_ODD ( "ssi_16-1.rom", 0x00000, 0x40000, 0x470a483a )
  385.  
  386.     ROM_REGION( 0x1c000, REGION_CPU2 )      /* sound cpu */
  387.     ROM_LOAD( "ssi_09.rom",   0x00000, 0x04000, 0x88d7f65c )
  388.     ROM_CONTINUE(             0x10000, 0x0c000 ) /* banked stuff */
  389.  
  390.     ROM_REGION( 0x100000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  391.     ROM_LOAD( "ssi_m01.rom",  0x00000, 0x100000, 0xa1b4f486 )
  392.  
  393.     ROM_REGION( 0x20000, REGION_SOUND1 )    /* 2610 samples */
  394.     ROM_LOAD( "ssi_m02.rom",  0x00000, 0x20000, 0x3cb0b907 )
  395. ROM_END
  396.  
  397. ROM_START( majest12 )
  398.     ROM_REGION( 0x80000, REGION_CPU1 )     /* 512k for 68000 code */
  399.     ROM_LOAD_EVEN( "c64-07.bin", 0x00000, 0x20000, 0xf29ed5c9 )
  400.     ROM_LOAD_EVEN( "c64-06.bin", 0x40000, 0x20000, 0x18dc71ac )
  401.     ROM_LOAD_ODD ( "c64-08.bin", 0x00000, 0x20000, 0xddfd33d5 )
  402.     ROM_LOAD_ODD ( "c64-05.bin", 0x40000, 0x20000, 0xb61866c0 )
  403.  
  404.     ROM_REGION( 0x1c000, REGION_CPU2 )      /* sound cpu */
  405.     ROM_LOAD( "ssi_09.rom",   0x00000, 0x04000, 0x88d7f65c )
  406.     ROM_CONTINUE(             0x10000, 0x0c000 ) /* banked stuff */
  407.  
  408.     ROM_REGION( 0x100000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  409.     ROM_LOAD( "ssi_m01.rom",  0x00000, 0x100000, 0xa1b4f486 )
  410.  
  411.     ROM_REGION( 0x20000, REGION_SOUND1 )    /* 2610 samples */
  412.     ROM_LOAD( "ssi_m02.rom",  0x00000, 0x20000, 0x3cb0b907 )
  413. ROM_END
  414.  
  415.  
  416.  
  417. GAMEX( 1990, ssi,      0,   ssi, ssi,      0, ROT270, "Taito Corporation Japan", "Super Space Invaders '91 (World)", GAME_NO_COCKTAIL )
  418. GAMEX( 1990, majest12, ssi, ssi, majest12, 0, ROT270, "Taito Corporation", "Majestic Twelve - The Space Invaders Part IV (Japan)", GAME_NO_COCKTAIL )
  419.